﻿using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZuesUI.Models
{
    public class ListViewModel:BindableBase
    {
        private DateTime _logDateTime;

        public DateTime LogDateTime
        {
            get => _logDateTime;
            set => SetProperty(ref _logDateTime, value);
        }

        private string name;

      
        public string Name
        {
            get => name;
            set => SetProperty(ref name, value);
        }

        private int age;

      
        public int Age
        {
            get => age;
            set => SetProperty(ref age, value);
        }


        private bool isSelected;

     
        public bool IsSelected
        {
            get => isSelected;
            set => SetProperty(ref isSelected, value);
        }

        private GenderType gender;

     
        public GenderType Gender
        {
            get => gender;
            set => SetProperty(ref gender, value);
        }
    }
    public enum GenderType
    {
        [Description("男")]
        Men,

        [Description("女")]
        Women
    }
}
